From: Giuseppe Scrivano Date: Thu, 14 May 2015 07:56:00 +0000 (+0200) Subject: ostree-repo: replace more gs_unref_(variant|bytes) with g_autoptr X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~710 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7224450591566ee587dfb6835c219178ca941001;p=ostree.git ostree-repo: replace more gs_unref_(variant|bytes) with g_autoptr Signed-off-by: Giuseppe Scrivano --- diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 148dfadd..2f211494 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -3806,9 +3806,9 @@ _ostree_repo_verify_commit_internal (OstreeRepo *self, GError **error) { OstreeGpgVerifyResult *result = NULL; - gs_unref_variant GVariant *commit_variant = NULL; - gs_unref_variant GVariant *metadata = NULL; - gs_unref_bytes GBytes *signed_data = NULL; + g_autoptr(GVariant) commit_variant = NULL; + g_autoptr(GVariant) metadata = NULL; + g_autoptr(GBytes) signed_data = NULL; /* Load the commit */ if (!ostree_repo_load_variant (self, OSTREE_OBJECT_TYPE_COMMIT,